package whf.framework.web;

import java.util.ArrayList;
import java.util.List;

/**
 * 页面消息
 * @author wanghaifeng
 * @create Mar 27, 2007 9:41:29 PM
 * 
 */
public class PageMessages {
	private List messageObjects = new ArrayList();
	
	public PageMessages(){
	}
	
	public void addMessage(Object msg){
		this.messageObjects.add(msg);
	}
	
	public void clearMessages(){
		this.messageObjects.clear();
	}
	
	public List getMessageObjects(){
		return this.messageObjects;
	}
	
	public boolean isEmpty(){
		return this.messageObjects.isEmpty();
	}
}
